//替换Echarts数组对象内的key值
export function handleDealFilter(arr, name, value) {
  let newArr = [];
  arr.forEach((item) => {
    item["name"] = item[name];
    item["value"] = item[value];
    newArr.push(item);
  });
  return newArr;
}
